<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>葛叫兽后台管理系统</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>* {
	FONT-SIZE: 9pt; OVERFLOW: hidden
}
BODY {
	MARGIN: 0px
}
</STYLE>
<script src="${webRoot}resources/js/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<script src="${webRoot}resources/js/bootstrap.min.js"></script>
	<script src="${webRoot}resources/js/js.js"></script>
<META name=GENERATOR content="MSHTML 8.00.6001.23520"></HEAD>
<BODY>
<TABLE border=0 cellSpacing=0 cellPadding=0 width=940 bgColor=#ffffff 
align=center>
  <TBODY>
  <TR>
    <TD style="BACKGROUND: url(${webRoot}resources/img/login01.jpg)" height=238>&nbsp;</TD></TR>
  <TR>
    <TD height=190>
      <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
        <TBODY>
        <TR>
          <TD style="BACKGROUND: url(${webRoot}resources/img/login02.jpg)" height=190 
          width=208>&nbsp;</TD>
          <TD style="BACKGROUND: url(${webRoot}resources/img/login03.jpg)" width=518>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=320 
              align=center><TBODY>
              <TR>
                <TD height=35 width=40><IMG src="${webRoot}resources/img/user.gif" 
                  width=30 height=30></TD>
                <TD height=35 width=38>用户</TD>
                <TD height=35 width=242><INPUT id=userName  size=35
                  name=admin_name></TD></TR>
              <TR>
                <TD height=35><IMG src="${webRoot}resources/img/password.gif" 
                  width=28 height=32></TD>
                <TD height=35 width=38>密码</TD>
                <TD height=35 width=242><INPUT id=userPass size=36.5 type=password 
                  name=pass_word></TD></TR>
              <TR>
                <TD height=40>&nbsp;</TD>
                <TD height=40>&nbsp;</TD>
                <TD height=50><INPUT src="${webRoot}resources/img/login.gif" 
                  type=image name="button" onclick="chk()"/> </TD></TR></TBODY></TABLE></TD>
          <TD style="BACKGROUND: url(${webRoot}resources/img/login04.jpg)" 
        width=214>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD style="BACKGROUND: url(${webRoot}resources/img/login051.jpg)" 
  height=133>&nbsp;</TD></TR></TBODY></TABLE>
  <form action="${webRoot}admin/web/tologin.do" id="form1" method="post">
  <input type="hidden" id="user_Name" name="adminname"/>
   <input type="hidden" id="user_Pass" name="password"/>
  </form>
<SCRIPT language=JavaScript type=text/JavaScript>
function chk(){
	var userName =$("#userName").val(); 
	if (userName ==null || userName ==''){
		alert ("请输入用户名！");
		return false;
	}
	var userPass =$("#userPass").val(); 
	if (userPass ==null||userPass ==''){
		alert("请输入密码!");
		return false;
	}
	$.ajax({url:"${webRoot}admin/checkLogin.do?adminname="+userName+"&password="+userPass,
	   type:"post",
	   cache:"false",
	   error : function() {
		   alert("系统繁忙，请稍后再试！");
		},
	   success:function(msg){
		  if($.trim(msg) == "1"){
			  alert("用户名或密码错误！");
			  return false;
		  }else{
			  $("#user_Name").val(userName);
			  $("#user_Pass").val(userPass);
			  document.getElementById("form1").submit();
		  }
	   }
	});
}
</SCRIPT>
</BODY></HTML>